resist the urge

Translations
résister à l'envie de
Definitions
To consciously avoid giving in to a strong desire or impulse to do something, often because it may lead to negative consequences.